package ca.ualberta.cs.CLRServer.resources;

import java.util.HashMap;
import java.util.Set;

import javax.xml.bind.annotation.XmlRootElement;

@SuppressWarnings("restriction")
@XmlRootElement
public class JAXBBean {
	
	String key;
	String val;
	
	public String getKey() {
		return key;
	}
	public void setKey(String key1) {
		this.key = key1;
	}
	public String getVal() {
		return val;
	}
	public void setVal(String val1) {
		this.val = val1;
	}
	
	/*HashMap<String ,String> map ;//= new HashMap<String, String>();

	public void putEntry(String key, String val){
		if(key1 == null){
			key1 = key;
			val1 = val;
		}
		else if(key2 == null){
			key2 = key;
			val2 = val;
		}
		else if(key3 == null){
			key3 = key;
			val3 = val;
		}
		else if(key4 == null){
			key4 = key;
			val4 = val;
		}
		else if(key5 == null){
			key5 = key;
			val5 = val;
		}
	}
	
	public void makeMap(){
		map = new HashMap<String, String>();
		if(key1 != null )
			map.put(key1, val1);
		if(key2 != null )
			map.put(key2, val2);
		if(key3 != null )
			map.put(key3, val3);
		if(key4 != null )
			map.put(key4, val4);
		if(key5 != null )
			map.put(key5, val5);		
	}
	
	public void put(String key, String val){
		map.put(key, val);
	}
	
	public Object get(String key){
		return map.get(key);
	}
	
	public Set<String> keySet(){
		return map.keySet();
	}
	
	public void remove(String key){
		map.remove(key);
	}
	
	public boolean containsKey(String key){
		return map.containsKey(key);
	}*/
}
